<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<div class="bjui-pageContent">
	<div class="bjui-datagrid">
		<div class="datagrid-title">用户查看</div>
		<div class="bjui-row col-3">
			<label class="row-label">邮箱：</label>
			<div class="row-input">
				${requestScope.users.email } (${requestScope.users.emailStatusStr })
			</div>
			<label class="row-label">昵称：</label>
			<div class="row-input">
				${requestScope.users.nickName }
			</div>
			<label class="row-label">真实姓名：</label>
			<div class="row-input">
				${requestScope.users.trueName }
			</div>
			<label class="row-label">手机：</label>
			<div class="row-input">
				${requestScope.users.phone } (${requestScope.users.phoneStatusStr })
			</div>
			<label class="row-label">qq：</label>
			<div class="row-input">
				${requestScope.users.qq }
			</div>
			<label class="row-label">生日：</label>
			<div class="row-input">
				<fmt:formatDate value="${requestScope.users.birthday }" pattern="yyyy-MM-dd"/>
			</div>
			<label class="row-label">性别：</label>
			<div class="row-input">
				${requestScope.users.sexStr}
			</div>
			<label class="row-label">登陆次数：</label>
			<div class="row-input">
				${requestScope.users.loginCount}
			</div>
			<label class="row-label">失败次数：</label>
			<div class="row-input">
				${requestScope.users.failedCount}
			</div>
			<label class="row-label">失败时间：</label>
			<div class="row-input">
				<fmt:formatDate value="${requestScope.users.failedTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
			</div>
			<label class="row-label">状态：</label>
			<div class="row-input">
				${requestScope.users.statusStr}
			</div>
			<label class="row-label">创建时间：</label>
			<div class="row-input">
				<fmt:formatDate value="${requestScope.users.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
			</div>
			<label class="row-label">更新时间：</label>
			<div class="row-input">
				<fmt:formatDate value="${requestScope.users.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
			</div>
			<label class="row-label">上次时间：</label>
			<div class="row-input">
				<fmt:formatDate value="${requestScope.users.lastLoginTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
			</div>
			<br/>
			<label class="row-label">地区：</label>
			<div class="row-input">
				${requestScope.users.region.parentRegion.parentRegion.name } 
				${requestScope.users.region.parentRegion.name } 
				${requestScope.users.region.name}
				${requestScope.users.address}
			</div>
			<br/>
			<label class="row-label">头像：</label>
			<div class="row-input">
				<c:choose>
					<c:when test="${requestScope.users.photoPath != null && requestScope.users.photoPath != ''}">
						<img src="${requestScope.users.photoPathWebsite }" class="img-responsive img-circle">
					</c:when>
					<c:otherwise>
						<img src="${rootpath}/images/no_pic.jpg" class="img-responsive img-circle">
					</c:otherwise>
				</c:choose>
			</div>
		</div>
		<div class="datagrid-title">扩展信息</div>
		<div class="bjui-row col-3">
			<label class="row-label">发送邮箱时间：</label>
			<div class="row-input">
				<fmt:formatDate value="${requestScope.users.usersExtend.sendEmailTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
			</div>
		</div>
	</div>
</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn-close" data-icon="close">取消</button></li>
		<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	</ul>
</div>